package com.company.project.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.company.project.entity.VaccinationStatisticsEntity;
import com.company.project.mapper.VaccinationStatisticsMapper;
import com.company.project.service.VaccinationStatisticsService;
import com.company.project.vo.req.VaccinationStatisticsTdVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 疫苗接种统计
 * @author jiapeiyi
 * @version V1.0
 * @date 2021年4月20日
 */
@Service("vaccinationStatisticsService")
public class VaccinationStatisticsServiceImpl extends ServiceImpl<VaccinationStatisticsMapper, VaccinationStatisticsEntity> implements VaccinationStatisticsService {
    @Resource
    private VaccinationStatisticsMapper vaccinationStatisticsMapper;

    @Override
    public List<VaccinationStatisticsEntity> qListByDate(String enddate){
        List<VaccinationStatisticsEntity> list = vaccinationStatisticsMapper.qListByDate(enddate);
        return  list;
    }

    @Override
    public List<VaccinationStatisticsEntity> cListBydate(String jurisdiction,String enddate){
        List<VaccinationStatisticsEntity> list = vaccinationStatisticsMapper.cListBydate(jurisdiction,enddate);
        return  list;
    }

    @Override
    public List<VaccinationStatisticsTdVO> todayCount(String enddate ){
        List<VaccinationStatisticsTdVO> list = vaccinationStatisticsMapper.todayCount(enddate);
        return  list;
    }
}